class MainController < ApplicationController
  layout 'shops'
  caches_action :home, :expires_in => 1.hour

  def home
    s = Shop.money.osales.count("`describe` is not null") - 20
    @shops = Shop.money.osales.where("`describe` is not null AND id >= #{rand s}").limit(20)
  end

  def about
    @title = '关于 - '
  end
end
